home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / xprz351s.lha / xprzmodem_catalog.h < prev    next >
C/C++ Source or Header  |  1995-06-30  |  20KB  |  529 lines

  1. #ifndef XPRZMODEM_CATALOG_H
  2. #define XPRZMODEM_CATALOG_H
  3.  
  4.  
  5. /****************************************************************************/
  6.  
  7.  
  8. /* This file was created automatically by CatComp.
  9.  * Do NOT edit by hand!
  10.  */
  11.  
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifdef CATCOMP_ARRAY
  18. #undef CATCOMP_NUMBERS
  19. #undef CATCOMP_STRINGS
  20. #define CATCOMP_NUMBERS
  21. #define CATCOMP_STRINGS
  22. #endif
  23.  
  24. #ifdef CATCOMP_BLOCK
  25. #undef CATCOMP_STRINGS
  26. #define CATCOMP_STRINGS
  27. #endif
  28.  
  29.  
  30. /****************************************************************************/
  31.  
  32.  
  33. #ifdef CATCOMP_NUMBERS
  34.  
  35. #define MSG_ZMODEM_OPTIONS 0
  36. #define MSG_TEXT_MODE 1
  37. #define MSG_OVERWRITE_MODE 2
  38. #define MSG_IO_BUFFER_SIZE 3
  39. #define MSG_FRAME_SIZE 4
  40. #define MSG_ERROR_LIMIT 5
  41. #define MSG_AUTO_ACTIVATE_RECEIVER 6
  42. #define MSG_DELETE_AFTER_SENDING 7
  43. #define MSG_KEEP_PARTIAL_FILES 8
  44. #define MSG_SEND_FULL_PATH 9
  45. #define MSG_USE_RECEIVED_PATH 10
  46. #define MSG_DEFAULT_RECEIVE_PATH 11
  47. #define MSG_MAXIMUM_BLOCK_SIZE 12
  48. #define MSG_SEND_NO_FILES 13
  49. #define MSG_LINK_RATE 14
  50. #define MSG_ESCAPE_ONLY_ZCAN 15
  51. #define MSG_FTN_ZMODEM 16
  52. #define MSG_XPR_EXT 17
  53. #define MSG_STARTUP_TIMEOUT 18
  54. #define MSG_NO_XPR_FINFO 19
  55. #define MSG_INVALID_T_FLAG 20
  56. #define MSG_INVALID_O_FLAG 21
  57. #define MSG_INVALID_A_FLAG 22
  58. #define MSG_NO_DY_XPR_UNLINK 23
  59. #define MSG_INVALID_D_FLAG 24
  60. #define MSG_NO_KN_XPR_UNLINK 25
  61. #define MSG_INVALID_K_FLAG 26
  62. #define MSG_INVALID_S_FLAG 27
  63. #define MSG_INVALID_R_FLAG 28
  64. #define MSG_INVALID_N_FLAG 29
  65. #define MSG_INVALID_Q_FLAG 30
  66. #define MSG_INVALID_Z_FLAG 31
  67. #define MSG_INVALID_Y_FLAG 32
  68. #define MSG_COMM_PROG_MISSING 33
  69. #define MSG_NOT_ENOUGH_MEMORY 34
  70. #define MSG_UPLOAD_USER_ERROR 35
  71. #define MSG_SKIPPED_DUE_TO_ERRORS 36
  72. #define MSG_NO_FILES_MATCH_TEMPLATE 37
  73. #define MSG_NO_FILES_SPECIFIED 38
  74. #define MSG_NO_FILES_REQUIRED 39
  75. #define MSG_CANT_OPEN_FILE 40
  76. #define MSG_DELETING_FILE_AFTER_SEND 41
  77. #define MSG_SENDING_TEXT_FILE 42
  78. #define MSG_SENDING_BINARY_FILE 43
  79. #define MSG_SENDING_FILE 44
  80. #define MSG_SKIP_COMMAND_RECEIVED 45
  81. #define MSG_TRANSFER_CANCELLED 46
  82. #define MSG_DONE 47
  83. #define MSG_SEND_DONE 48
  84. #define MSG_RECV_DONE 49
  85. #define MSG_RESUMING_SEND 50
  86. #define MSG_RESUMING_RECV 51
  87. #define MSG_SENDING_EOF 52
  88. #define MSG_EOF_ACKNOWLEDGED 53
  89. #define MSG_RESENDING_FROM 54
  90. #define MSG_DOWNLOAD_USER_ERROR 55
  91. #define MSG_IGNORING_COMMAND 56
  92. #define MSG_DELETING_RECEIVED_FILE 57
  93. #define MSG_KEEPING_RECEIVED_FILE 58
  94. #define MSG_RETRIES_LEFT 59
  95. #define MSG_BAD_EOF 60
  96. #define MSG_EOF_RECEIVED 61
  97. #define MSG_DATA_AT_BAD_POSITION 62
  98. #define MSG_INSUFFICIENT_DISK_SPACE 63
  99. #define MSG_FILE_EXISTS 64
  100. #define MSG_RECEIVE_BINARY 65
  101. #define MSG_RECEIVE_TEXT 66
  102. #define MSG_ERROR_WRITING_FILE 67
  103. #define MSG_BAD_DATA_PACKET_CRC_16 68
  104. #define MSG_SENDER_CANCELED 69
  105. #define MSG_DATA_PACKET_TIMEOUT 70
  106. #define MSG_UNRECOG_DATA_PACKET 71
  107. #define MSG_DATA_PACKET_TOO_LONG 72
  108. #define MSG_BAD_DATA_PACKET_CRC_32 73
  109. #define MSG_HEADER_SEARCH_GARBAGE 74
  110. #define MSG_HEADER 75
  111. #define MSG_ERROR 76
  112. #define MSG_BAD_HEADER_CRC_16 77
  113. #define MSG_BAD_HEADER_CRC_32 78
  114. #define MSG_BAD_HEADER_CRC 79
  115. #define MSG_BAD_ZMODEM_ESC_SEQ 80
  116.  
  117. #endif /* CATCOMP_NUMBERS */
  118.  
  119.  
  120. /****************************************************************************/
  121.  
  122.  
  123. #ifdef CATCOMP_STRINGS
  124.  
  125. #define MSG_ZMODEM_OPTIONS_STR "ZModem options:"
  126. #define MSG_TEXT_MODE_STR "Text mode (Y,N,?,C):"
  127. #define MSG_OVERWRITE_MODE_STR "Overwrite mode (Y,N,R,S):"
  128. #define MSG_IO_BUFFER_SIZE_STR "I/O buffer size (KB):"
  129. #define MSG_FRAME_SIZE_STR "Frame size (bytes):"
  130. #define MSG_ERROR_LIMIT_STR "Error limit:"
  131. #define MSG_AUTO_ACTIVATE_RECEIVER_STR "Auto-activate receiver:"
  132. #define MSG_DELETE_AFTER_SENDING_STR "Delete after sending:"
  133. #define MSG_KEEP_PARTIAL_FILES_STR "Keep partial files:"
  134. #define MSG_SEND_FULL_PATH_STR "Send full path:"
  135. #define MSG_USE_RECEIVED_PATH_STR "Use received path:"
  136. #define MSG_DEFAULT_RECEIVE_PATH_STR "Default receive path:"
  137. #define MSG_MAXIMUM_BLOCK_SIZE_STR "Maximum Block Size:"
  138. #define MSG_SEND_NO_FILES_STR "Send if No Files:"
  139. #define MSG_LINK_RATE_STR "Link Rate:"
  140. #define MSG_ESCAPE_ONLY_ZCAN_STR "Escape ZCAN only:"
  141. #define MSG_FTN_ZMODEM_STR "FTN ZModem:"
  142. #define MSG_XPR_EXT_STR "Enable XPR 2.001 Extensions:"
  143. #define MSG_STARTUP_TIMEOUT_STR "Set Startup Timeout (seconds):"
  144. #define MSG_NO_XPR_FINFO_STR "Can't Resume; xpr_finfo() not supported"
  145. #define MSG_INVALID_T_FLAG_STR "Invalid T flag ignored; should be Y, N, ?, or C"
  146. #define MSG_INVALID_O_FLAG_STR "Invalid O flag ignored; should be Y, N, R, or S"
  147. #define MSG_INVALID_A_FLAG_STR "Invalid A flag ignored; should be Y or N"
  148. #define MSG_NO_DY_XPR_UNLINK_STR "Can't use DY; xpr_unlink() not supported"
  149. #define MSG_INVALID_D_FLAG_STR "Invalid D flag ignored; should be Y or N"
  150. #define MSG_NO_KN_XPR_UNLINK_STR "Can't use KN; xpr_unlink() not supported"
  151. #define MSG_INVALID_K_FLAG_STR "Invalid K flag ignored; should be Y or N"
  152. #define MSG_INVALID_S_FLAG_STR "Invalid S flag ignored; should be Y or N"
  153. #define MSG_INVALID_R_FLAG_STR "Invalid R flag ignored; should be Y or N"
  154. #define MSG_INVALID_N_FLAG_STR "Invalid N Flag Ignored; Should Be Y Or N"
  155. #define MSG_INVALID_Q_FLAG_STR "Invalid Q Flag Ignored; Should Be Y Or N"
  156. #define MSG_INVALID_Z_FLAG_STR "Invalid Z Flag Ignored; Should Be Y Or N"
  157. #define MSG_INVALID_Y_FLAG_STR "Invalid Y Flag Ignored; Should Be Y Or N"
  158. #define MSG_COMM_PROG_MISSING_STR "Comm prog missing required function(s); see docs"
  159. #define MSG_NOT_ENOUGH_MEMORY_STR "Not enough memory"
  160. #define MSG_UPLOAD_USER_ERROR_STR "Upload cancelled or timed out"
  161. #define MSG_SKIPPED_DUE_TO_ERRORS_STR "One or more files skipped due to errors"
  162. #define MSG_NO_FILES_MATCH_TEMPLATE_STR "No files match template"
  163. #define MSG_NO_FILES_SPECIFIED_STR "No files specified"
  164. #define MSG_NO_FILES_REQUIRED_STR "No files required"
  165. #define MSG_CANT_OPEN_FILE_STR "Can't open file; skipping"
  166. #define MSG_DELETING_FILE_AFTER_SEND_STR "Deleting file after send"
  167. #define MSG_SENDING_TEXT_FILE_STR "Sending text file..."
  168. #define MSG_SENDING_BINARY_FILE_STR "Sending binary file..."
  169. #define MSG_SENDING_FILE_STR "Sending file..."
  170. #define MSG_SKIP_COMMAND_RECEIVED_STR "SKIP command received"
  171. #define MSG_TRANSFER_CANCELLED_STR "Transfer cancelled"
  172. #define MSG_DONE_STR "Done."
  173. #define MSG_SEND_DONE_STR "Finished Sending"
  174. #define MSG_RECV_DONE_STR "Finished Receiving"
  175. #define MSG_RESUMING_SEND_STR "Resuming send"
  176. #define MSG_RESUMING_RECV_STR "Resuming receive"
  177. #define MSG_SENDING_EOF_STR "Sending EOF"
  178. #define MSG_EOF_ACKNOWLEDGED_STR "EOF acknowledged"
  179. #define MSG_RESENDING_FROM_STR "Resending from"
  180. #define MSG_DOWNLOAD_USER_ERROR_STR "Download cancelled or timed out"
  181. #define MSG_IGNORING_COMMAND_STR "Ignoring command"
  182. #define MSG_DELETING_RECEIVED_FILE_STR "Deleting partially received file"
  183. #define MSG_KEEPING_RECEIVED_FILE_STR "Keeping partially received file"
  184. #define MSG_RETRIES_LEFT_STR "retries left"
  185. #define MSG_BAD_EOF_STR "Bad EOF; here=%ld, there=%ld"
  186. #define MSG_EOF_RECEIVED_STR "EOF received; checking for next file"
  187. #define MSG_DATA_AT_BAD_POSITION_STR "Data at bad position; here=%ld, there=%ld"
  188. #define MSG_INSUFFICIENT_DISK_SPACE_STR "Insufficient disk space; need %ld bytes, have %ld"
  189. #define MSG_FILE_EXISTS_STR "File already exists; skipping"
  190. #define MSG_RECEIVE_BINARY_STR "Receiving binary file..."
  191. #define MSG_RECEIVE_TEXT_STR "Receiving text file..."
  192. #define MSG_ERROR_WRITING_FILE_STR "Error writing file; disk full?"
  193. #define MSG_BAD_DATA_PACKET_CRC_16_STR "Bad data packet CRC-16\x20"
  194. #define MSG_SENDER_CANCELED_STR "Sender canceled\x20"
  195. #define MSG_DATA_PACKET_TIMEOUT_STR "Data packet timeout\x20"
  196. #define MSG_UNRECOG_DATA_PACKET_STR "Unrecognizable data packet\x20"
  197. #define MSG_DATA_PACKET_TOO_LONG_STR "Data packet too long\x20"
  198. #define MSG_BAD_DATA_PACKET_CRC_32_STR "Bad data packet CRC-32\x20"
  199. #define MSG_HEADER_SEARCH_GARBAGE_STR "Header search garbage count exceeded\x20"
  200. #define MSG_HEADER_STR "header"
  201. #define MSG_ERROR_STR "error"
  202. #define MSG_BAD_HEADER_CRC_16_STR "Bad Header CRC-16\x20"
  203. #define MSG_BAD_HEADER_CRC_32_STR "Bad Header CRC-32\x20"
  204. #define MSG_BAD_HEADER_CRC_STR "Bad Header CRC\x20"
  205. #define MSG_BAD_ZMODEM_ESC_SEQ_STR "Bad ZMODEM escape sequence\x20"
  206.  
  207. #endif /* CATCOMP_STRINGS */
  208.  
  209.  
  210. /****************************************************************************/
  211.  
  212.  
  213. #ifdef CATCOMP_ARRAY
  214.  
  215. struct CatCompArrayType
  216. {
  217.     LONG   cca_ID;
  218.     STRPTR cca_Str;
  219. };
  220.  
  221. static const struct CatCompArrayType CatCompArray[] =
  222. {
  223.     {MSG_ZMODEM_OPTIONS,(STRPTR)MSG_ZMODEM_OPTIONS_STR},
  224.     {MSG_TEXT_MODE,(STRPTR)MSG_TEXT_MODE_STR},
  225.     {MSG_OVERWRITE_MODE,(STRPTR)MSG_OVERWRITE_MODE_STR},
  226.     {MSG_IO_BUFFER_SIZE,(STRPTR)MSG_IO_BUFFER_SIZE_STR},
  227.     {MSG_FRAME_SIZE,(STRPTR)MSG_FRAME_SIZE_STR},
  228.     {MSG_ERROR_LIMIT,(STRPTR)MSG_ERROR_LIMIT_STR},
  229.     {MSG_AUTO_ACTIVATE_RECEIVER,(STRPTR)MSG_AUTO_ACTIVATE_RECEIVER_STR},
  230.     {MSG_DELETE_AFTER_SENDING,(STRPTR)MSG_DELETE_AFTER_SENDING_STR},
  231.     {MSG_KEEP_PARTIAL_FILES,(STRPTR)MSG_KEEP_PARTIAL_FILES_STR},
  232.     {MSG_SEND_FULL_PATH,(STRPTR)MSG_SEND_FULL_PATH_STR},
  233.     {MSG_USE_RECEIVED_PATH,(STRPTR)MSG_USE_RECEIVED_PATH_STR},
  234.     {MSG_DEFAULT_RECEIVE_PATH,(STRPTR)MSG_DEFAULT_RECEIVE_PATH_STR},
  235.     {MSG_MAXIMUM_BLOCK_SIZE,(STRPTR)MSG_MAXIMUM_BLOCK_SIZE_STR},
  236.     {MSG_SEND_NO_FILES,(STRPTR)MSG_SEND_NO_FILES_STR},
  237.     {MSG_LINK_RATE,(STRPTR)MSG_LINK_RATE_STR},
  238.     {MSG_ESCAPE_ONLY_ZCAN,(STRPTR)MSG_ESCAPE_ONLY_ZCAN_STR},
  239.     {MSG_FTN_ZMODEM,(STRPTR)MSG_FTN_ZMODEM_STR},
  240.     {MSG_XPR_EXT,(STRPTR)MSG_XPR_EXT_STR},
  241.     {MSG_STARTUP_TIMEOUT,(STRPTR)MSG_STARTUP_TIMEOUT_STR},
  242.     {MSG_NO_XPR_FINFO,(STRPTR)MSG_NO_XPR_FINFO_STR},
  243.     {MSG_INVALID_T_FLAG,(STRPTR)MSG_INVALID_T_FLAG_STR},
  244.     {MSG_INVALID_O_FLAG,(STRPTR)MSG_INVALID_O_FLAG_STR},
  245.     {MSG_INVALID_A_FLAG,(STRPTR)MSG_INVALID_A_FLAG_STR},
  246.     {MSG_NO_DY_XPR_UNLINK,(STRPTR)MSG_NO_DY_XPR_UNLINK_STR},
  247.     {MSG_INVALID_D_FLAG,(STRPTR)MSG_INVALID_D_FLAG_STR},
  248.     {MSG_NO_KN_XPR_UNLINK,(STRPTR)MSG_NO_KN_XPR_UNLINK_STR},
  249.     {MSG_INVALID_K_FLAG,(STRPTR)MSG_INVALID_K_FLAG_STR},
  250.     {MSG_INVALID_S_FLAG,(STRPTR)MSG_INVALID_S_FLAG_STR},
  251.     {MSG_INVALID_R_FLAG,(STRPTR)MSG_INVALID_R_FLAG_STR},
  252.     {MSG_INVALID_N_FLAG,(STRPTR)MSG_INVALID_N_FLAG_STR},
  253.     {MSG_INVALID_Q_FLAG,(STRPTR)MSG_INVALID_Q_FLAG_STR},
  254.     {MSG_INVALID_Z_FLAG,(STRPTR)MSG_INVALID_Z_FLAG_STR},
  255.     {MSG_INVALID_Y_FLAG,(STRPTR)MSG_INVALID_Y_FLAG_STR},
  256.     {MSG_COMM_PROG_MISSING,(STRPTR)MSG_COMM_PROG_MISSING_STR},
  257.     {MSG_NOT_ENOUGH_MEMORY,(STRPTR)MSG_NOT_ENOUGH_MEMORY_STR},
  258.     {MSG_UPLOAD_USER_ERROR,(STRPTR)MSG_UPLOAD_USER_ERROR_STR},
  259.     {MSG_SKIPPED_DUE_TO_ERRORS,(STRPTR)MSG_SKIPPED_DUE_TO_ERRORS_STR},
  260.     {MSG_NO_FILES_MATCH_TEMPLATE,(STRPTR)MSG_NO_FILES_MATCH_TEMPLATE_STR},
  261.     {MSG_NO_FILES_SPECIFIED,(STRPTR)MSG_NO_FILES_SPECIFIED_STR},
  262.     {MSG_NO_FILES_REQUIRED,(STRPTR)MSG_NO_FILES_REQUIRED_STR},
  263.     {MSG_CANT_OPEN_FILE,(STRPTR)MSG_CANT_OPEN_FILE_STR},
  264.     {MSG_DELETING_FILE_AFTER_SEND,(STRPTR)MSG_DELETING_FILE_AFTER_SEND_STR},
  265.     {MSG_SENDING_TEXT_FILE,(STRPTR)MSG_SENDING_TEXT_FILE_STR},
  266.     {MSG_SENDING_BINARY_FILE,(STRPTR)MSG_SENDING_BINARY_FILE_STR},
  267.     {MSG_SENDING_FILE,(STRPTR)MSG_SENDING_FILE_STR},
  268.     {MSG_SKIP_COMMAND_RECEIVED,(STRPTR)MSG_SKIP_COMMAND_RECEIVED_STR},
  269.     {MSG_TRANSFER_CANCELLED,(STRPTR)MSG_TRANSFER_CANCELLED_STR},
  270.     {MSG_DONE,(STRPTR)MSG_DONE_STR},
  271.     {MSG_SEND_DONE,(STRPTR)MSG_SEND_DONE_STR},
  272.     {MSG_RECV_DONE,(STRPTR)MSG_RECV_DONE_STR},
  273.     {MSG_RESUMING_SEND,(STRPTR)MSG_RESUMING_SEND_STR},
  274.     {MSG_RESUMING_RECV,(STRPTR)MSG_RESUMING_RECV_STR},
  275.     {MSG_SENDING_EOF,(STRPTR)MSG_SENDING_EOF_STR},
  276.     {MSG_EOF_ACKNOWLEDGED,(STRPTR)MSG_EOF_ACKNOWLEDGED_STR},
  277.     {MSG_RESENDING_FROM,(STRPTR)MSG_RESENDING_FROM_STR},
  278.     {MSG_DOWNLOAD_USER_ERROR,(STRPTR)MSG_DOWNLOAD_USER_ERROR_STR},
  279.     {MSG_IGNORING_COMMAND,(STRPTR)MSG_IGNORING_COMMAND_STR},
  280.     {MSG_DELETING_RECEIVED_FILE,(STRPTR)MSG_DELETING_RECEIVED_FILE_STR},
  281.     {MSG_KEEPING_RECEIVED_FILE,(STRPTR)MSG_KEEPING_RECEIVED_FILE_STR},
  282.     {MSG_RETRIES_LEFT,(STRPTR)MSG_RETRIES_LEFT_STR},
  283.     {MSG_BAD_EOF,(STRPTR)MSG_BAD_EOF_STR},
  284.     {MSG_EOF_RECEIVED,(STRPTR)MSG_EOF_RECEIVED_STR},
  285.     {MSG_DATA_AT_BAD_POSITION,(STRPTR)MSG_DATA_AT_BAD_POSITION_STR},
  286.     {MSG_INSUFFICIENT_DISK_SPACE,(STRPTR)MSG_INSUFFICIENT_DISK_SPACE_STR},
  287.     {MSG_FILE_EXISTS,(STRPTR)MSG_FILE_EXISTS_STR},
  288.     {MSG_RECEIVE_BINARY,(STRPTR)MSG_RECEIVE_BINARY_STR},
  289.     {MSG_RECEIVE_TEXT,(STRPTR)MSG_RECEIVE_TEXT_STR},
  290.     {MSG_ERROR_WRITING_FILE,(STRPTR)MSG_ERROR_WRITING_FILE_STR},
  291.     {MSG_BAD_DATA_PACKET_CRC_16,(STRPTR)MSG_BAD_DATA_PACKET_CRC_16_STR},
  292.     {MSG_SENDER_CANCELED,(STRPTR)MSG_SENDER_CANCELED_STR},
  293.     {MSG_DATA_PACKET_TIMEOUT,(STRPTR)MSG_DATA_PACKET_TIMEOUT_STR},
  294.     {MSG_UNRECOG_DATA_PACKET,(STRPTR)MSG_UNRECOG_DATA_PACKET_STR},
  295.     {MSG_DATA_PACKET_TOO_LONG,(STRPTR)MSG_DATA_PACKET_TOO_LONG_STR},
  296.     {MSG_BAD_DATA_PACKET_CRC_32,(STRPTR)MSG_BAD_DATA_PACKET_CRC_32_STR},
  297.     {MSG_HEADER_SEARCH_GARBAGE,(STRPTR)MSG_HEADER_SEARCH_GARBAGE_STR},
  298.     {MSG_HEADER,(STRPTR)MSG_HEADER_STR},
  299.     {MSG_ERROR,(STRPTR)MSG_ERROR_STR},
  300.     {MSG_BAD_HEADER_CRC_16,(STRPTR)MSG_BAD_HEADER_CRC_16_STR},
  301.     {MSG_BAD_HEADER_CRC_32,(STRPTR)MSG_BAD_HEADER_CRC_32_STR},
  302.     {MSG_BAD_HEADER_CRC,(STRPTR)MSG_BAD_HEADER_CRC_STR},
  303.     {MSG_BAD_ZMODEM_ESC_SEQ,(STRPTR)MSG_BAD_ZMODEM_ESC_SEQ_STR},
  304. };
  305.  
  306. #endif /* CATCOMP_ARRAY */
  307.  
  308.  
  309. /****************************************************************************/
  310.  
  311.  
  312. #ifdef CATCOMP_BLOCK
  313.  
  314. static const char CatCompBlock[] =
  315. {
  316.     "\x00\x00\x00\x00\x00\x10"
  317.     MSG_ZMODEM_OPTIONS_STR "\x00"
  318.     "\x00\x00\x00\x01\x00\x16"
  319.     MSG_TEXT_MODE_STR "\x00\x00"
  320.     "\x00\x00\x00\x02\x00\x1A"
  321.     MSG_OVERWRITE_MODE_STR "\x00"
  322.     "\x00\x00\x00\x03\x00\x16"
  323.     MSG_IO_BUFFER_SIZE_STR "\x00"
  324.     "\x00\x00\x00\x04\x00\x14"
  325.     MSG_FRAME_SIZE_STR "\x00"
  326.     "\x00\x00\x00\x05\x00\x0E"
  327.     MSG_ERROR_LIMIT_STR "\x00\x00"
  328.     "\x00\x00\x00\x06\x00\x18"
  329.     MSG_AUTO_ACTIVATE_RECEIVER_STR "\x00"
  330.     "\x00\x00\x00\x07\x00\x16"
  331.     MSG_DELETE_AFTER_SENDING_STR "\x00"
  332.     "\x00\x00\x00\x08\x00\x14"
  333.     MSG_KEEP_PARTIAL_FILES_STR "\x00"
  334.     "\x00\x00\x00\x09\x00\x10"
  335.     MSG_SEND_FULL_PATH_STR "\x00"
  336.     "\x00\x00\x00\x0A\x00\x14"
  337.     MSG_USE_RECEIVED_PATH_STR "\x00\x00"
  338.     "\x00\x00\x00\x0B\x00\x16"
  339.     MSG_DEFAULT_RECEIVE_PATH_STR "\x00"
  340.     "\x00\x00\x00\x0C\x00\x14"
  341.     MSG_MAXIMUM_BLOCK_SIZE_STR "\x00"
  342.     "\x00\x00\x00\x0D\x00\x12"
  343.     MSG_SEND_NO_FILES_STR "\x00"
  344.     "\x00\x00\x00\x0E\x00\x0C"
  345.     MSG_LINK_RATE_STR "\x00\x00"
  346.     "\x00\x00\x00\x0F\x00\x12"
  347.     MSG_ESCAPE_ONLY_ZCAN_STR "\x00"
  348.     "\x00\x00\x00\x10\x00\x0C"
  349.     MSG_FTN_ZMODEM_STR "\x00"
  350.     "\x00\x00\x00\x11\x00\x1E"
  351.     MSG_XPR_EXT_STR "\x00\x00"
  352.     "\x00\x00\x00\x12\x00\x20"
  353.     MSG_STARTUP_TIMEOUT_STR "\x00\x00"
  354.     "\x00\x00\x00\x13\x00\x28"
  355.     MSG_NO_XPR_FINFO_STR "\x00"
  356.     "\x00\x00\x00\x14\x00\x30"
  357.     MSG_INVALID_T_FLAG_STR "\x00"
  358.     "\x00\x00\x00\x15\x00\x30"
  359.     MSG_INVALID_O_FLAG_STR "\x00"
  360.     "\x00\x00\x00\x16\x00\x2A"
  361.     MSG_INVALID_A_FLAG_STR "\x00\x00"
  362.     "\x00\x00\x00\x17\x00\x2A"
  363.     MSG_NO_DY_XPR_UNLINK_STR "\x00\x00"
  364.     "\x00\x00\x00\x18\x00\x2A"
  365.     MSG_INVALID_D_FLAG_STR "\x00\x00"
  366.     "\x00\x00\x00\x19\x00\x2A"
  367.     MSG_NO_KN_XPR_UNLINK_STR "\x00\x00"
  368.     "\x00\x00\x00\x1A\x00\x2A"
  369.     MSG_INVALID_K_FLAG_STR "\x00\x00"
  370.     "\x00\x00\x00\x1B\x00\x2A"
  371.     MSG_INVALID_S_FLAG_STR "\x00\x00"
  372.     "\x00\x00\x00\x1C\x00\x2A"
  373.     MSG_INVALID_R_FLAG_STR "\x00\x00"
  374.     "\x00\x00\x00\x1D\x00\x2A"
  375.     MSG_INVALID_N_FLAG_STR "\x00\x00"
  376.     "\x00\x00\x00\x1E\x00\x2A"
  377.     MSG_INVALID_Q_FLAG_STR "\x00\x00"
  378.     "\x00\x00\x00\x1F\x00\x2A"
  379.     MSG_INVALID_Z_FLAG_STR "\x00\x00"
  380.     "\x00\x00\x00\x20\x00\x2A"
  381.     MSG_INVALID_Y_FLAG_STR "\x00\x00"
  382.     "\x00\x00\x00\x21\x00\x32"
  383.     MSG_COMM_PROG_MISSING_STR "\x00\x00"
  384.     "\x00\x00\x00\x22\x00\x12"
  385.     MSG_NOT_ENOUGH_MEMORY_STR "\x00"
  386.     "\x00\x00\x00\x23\x00\x1E"
  387.     MSG_UPLOAD_USER_ERROR_STR "\x00"
  388.     "\x00\x00\x00\x24\x00\x28"
  389.     MSG_SKIPPED_DUE_TO_ERRORS_STR "\x00"
  390.     "\x00\x00\x00\x25\x00\x18"
  391.     MSG_NO_FILES_MATCH_TEMPLATE_STR "\x00"
  392.     "\x00\x00\x00\x26\x00\x14"
  393.     MSG_NO_FILES_SPECIFIED_STR "\x00\x00"
  394.     "\x00\x00\x00\x27\x00\x12"
  395.     MSG_NO_FILES_REQUIRED_STR "\x00"
  396.     "\x00\x00\x00\x28\x00\x1A"
  397.     MSG_CANT_OPEN_FILE_STR "\x00"
  398.     "\x00\x00\x00\x29\x00\x1A"
  399.     MSG_DELETING_FILE_AFTER_SEND_STR "\x00\x00"
  400.     "\x00\x00\x00\x2A\x00\x16"
  401.     MSG_SENDING_TEXT_FILE_STR "\x00\x00"
  402.     "\x00\x00\x00\x2B\x00\x18"
  403.     MSG_SENDING_BINARY_FILE_STR "\x00\x00"
  404.     "\x00\x00\x00\x2C\x00\x10"
  405.     MSG_SENDING_FILE_STR "\x00"
  406.     "\x00\x00\x00\x2D\x00\x16"
  407.     MSG_SKIP_COMMAND_RECEIVED_STR "\x00"
  408.     "\x00\x00\x00\x2E\x00\x14"
  409.     MSG_TRANSFER_CANCELLED_STR "\x00\x00"
  410.     "\x00\x00\x00\x2F\x00\x06"
  411.     MSG_DONE_STR "\x00"
  412.     "\x00\x00\x00\x30\x00\x12"
  413.     MSG_SEND_DONE_STR "\x00\x00"
  414.     "\x00\x00\x00\x31\x00\x14"
  415.     MSG_RECV_DONE_STR "\x00\x00"
  416.     "\x00\x00\x00\x32\x00\x0E"
  417.     MSG_RESUMING_SEND_STR "\x00"
  418.     "\x00\x00\x00\x33\x00\x12"
  419.     MSG_RESUMING_RECV_STR "\x00\x00"
  420.     "\x00\x00\x00\x34\x00\x0C"
  421.     MSG_SENDING_EOF_STR "\x00"
  422.     "\x00\x00\x00\x35\x00\x12"
  423.     MSG_EOF_ACKNOWLEDGED_STR "\x00\x00"
  424.     "\x00\x00\x00\x36\x00\x10"
  425.     MSG_RESENDING_FROM_STR "\x00\x00"
  426.     "\x00\x00\x00\x37\x00\x20"
  427.     MSG_DOWNLOAD_USER_ERROR_STR "\x00"
  428.     "\x00\x00\x00\x38\x00\x12"
  429.     MSG_IGNORING_COMMAND_STR "\x00\x00"
  430.     "\x00\x00\x00\x39\x00\x22"
  431.     MSG_DELETING_RECEIVED_FILE_STR "\x00\x00"
  432.     "\x00\x00\x00\x3A\x00\x20"
  433.     MSG_KEEPING_RECEIVED_FILE_STR "\x00"
  434.     "\x00\x00\x00\x3B\x00\x0E"
  435.     MSG_RETRIES_LEFT_STR "\x00\x00"
  436.     "\x00\x00\x00\x3C\x00\x1E"
  437.     MSG_BAD_EOF_STR "\x00\x00"
  438.     "\x00\x00\x00\x3D\x00\x26"
  439.     MSG_EOF_RECEIVED_STR "\x00\x00"
  440.     "\x00\x00\x00\x3E\x00\x2A"
  441.     MSG_DATA_AT_BAD_POSITION_STR "\x00"
  442.     "\x00\x00\x00\x3F\x00\x32"
  443.     MSG_INSUFFICIENT_DISK_SPACE_STR "\x00"
  444.     "\x00\x00\x00\x40\x00\x1E"
  445.     MSG_FILE_EXISTS_STR "\x00"
  446.     "\x00\x00\x00\x41\x00\x1A"
  447.     MSG_RECEIVE_BINARY_STR "\x00\x00"
  448.     "\x00\x00\x00\x42\x00\x18"
  449.     MSG_RECEIVE_TEXT_STR "\x00\x00"
  450.     "\x00\x00\x00\x43\x00\x20"
  451.     MSG_ERROR_WRITING_FILE_STR "\x00\x00"
  452.     "\x00\x00\x00\x44\x00\x18"
  453.     MSG_BAD_DATA_PACKET_CRC_16_STR "\x00"
  454.     "\x00\x00\x00\x45\x00\x12"
  455.     MSG_SENDER_CANCELED_STR "\x00\x00"
  456.     "\x00\x00\x00\x46\x00\x16"
  457.     MSG_DATA_PACKET_TIMEOUT_STR "\x00\x00"
  458.     "\x00\x00\x00\x47\x00\x1C"
  459.     MSG_UNRECOG_DATA_PACKET_STR "\x00"
  460.     "\x00\x00\x00\x48\x00\x16"
  461.     MSG_DATA_PACKET_TOO_LONG_STR "\x00"
  462.     "\x00\x00\x00\x49\x00\x18"
  463.     MSG_BAD_DATA_PACKET_CRC_32_STR "\x00"
  464.     "\x00\x00\x00\x4A\x00\x26"
  465.     MSG_HEADER_SEARCH_GARBAGE_STR "\x00"
  466.     "\x00\x00\x00\x4B\x00\x08"
  467.     MSG_HEADER_STR "\x00\x00"
  468.     "\x00\x00\x00\x4C\x00\x06"
  469.     MSG_ERROR_STR "\x00"
  470.     "\x00\x00\x00\x4D\x00\x14"
  471.     MSG_BAD_HEADER_CRC_16_STR "\x00\x00"
  472.     "\x00\x00\x00\x4E\x00\x14"
  473.     MSG_BAD_HEADER_CRC_32_STR "\x00\x00"
  474.     "\x00\x00\x00\x4F\x00\x10"
  475.     MSG_BAD_HEADER_CRC_STR "\x00"
  476.     "\x00\x00\x00\x50\x00\x1C"
  477.     MSG_BAD_ZMODEM_ESC_SEQ_STR "\x00"
  478. };
  479.  
  480. #endif /* CATCOMP_BLOCK */
  481.  
  482.  
  483. /****************************************************************************/
  484.  
  485.  
  486. struct LocaleInfo
  487. {
  488.     APTR li_LocaleBase;
  489.     APTR li_Catalog;
  490. };
  491.  
  492.  
  493. #ifdef CATCOMP_CODE
  494.  
  495. STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
  496. {
  497. LONG   *l;
  498. UWORD  *w;
  499. STRPTR  builtIn;
  500.  
  501.     l = (LONG *)CatCompBlock;
  502.  
  503.     while (*l != stringNum)
  504.     {
  505.         w = (UWORD *)((ULONG)l + 4);
  506.         l = (LONG *)((ULONG)l + (ULONG)*w + 6);
  507.     }
  508.     builtIn = (STRPTR)((ULONG)l + 6);
  509.  
  510. #define XLocaleBase LocaleBase
  511. #define LocaleBase li->li_LocaleBase
  512.     
  513.     if (LocaleBase)
  514.         return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
  515. #define LocaleBase XLocaleBase
  516. #undef XLocaleBase
  517.  
  518.     return(builtIn);
  519. }
  520.  
  521.  
  522. #endif /* CATCOMP_CODE */
  523.  
  524.  
  525. /****************************************************************************/
  526.  
  527.  
  528. #endif /* XPRZMODEM_CATALOG_H */
  529.